package cn.xinfei.xdecision.common.service.component.scorecard.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.xinfei.xdecision.common.dao.canal.TableEnum;
import cn.xinfei.xdecision.common.dao.component.scorecard.ScorecardDimensionMapper;
import cn.xinfei.xdecision.common.model.component.scorecard.ScorecardDimension;

import cn.xinfei.xdecision.common.service.component.scorecard.ScorecardDimensionService;
import cn.xinfei.xdecision.common.utils.constant.Constants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.List;
import lombok.extern.slf4j.Slf4j;

@Service
@Slf4j
public class ScorecardDimensionServiceImpl extends ServiceImpl<ScorecardDimensionMapper, ScorecardDimension> implements ScorecardDimensionService {



    @Override
    public List<ScorecardDimension> getDimensionListByVersionId(Long versionId) {
        List<ScorecardDimension> dimensionList = null;

            LambdaQueryWrapper<ScorecardDimension> queryWrapper = new LambdaQueryWrapper<>();
            queryWrapper.eq(ScorecardDimension::getVersionId, versionId);
            dimensionList = this.list(queryWrapper);
        return dimensionList;
    }
}
